package com.zdy.today;

import android.app.Application;

import com.liulishuo.filedownloader.FileDownloader;
import com.umeng.message.PushAgent;

/**
 * Created by jsb-cpyy on 2016/12/13.
 */

public class TodayApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        FileDownloader.init(getApplicationContext());
        PushAgent mPushAgent = PushAgent.getInstance(this);
        mPushAgent.setDebugMode(true);
        //注册推送服务，每次调用register方法都会回调该接口
//        mPushAgent.register(new IUmengRegisterCallback() {
//
//            @Override
//            public void onSuccess(String deviceToken) {
//                //注册成功会返回device token
//            }
//
//            @Override
//            public void onFailure(String s, String s1) {
//
//            }
//        });
    }
}
